package com.dingwen.treasure.business.model.vo;

import com.dingwen.treasure.base.annotation.Desensitization;
import com.dingwen.treasure.base.enums.DesensitizationFunction;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 　脱敏测试视图
 * 　@author dingwen
 * 　@date 2022/7/20
 */
@ApiModel(value = "DesensitizationVO", description = "脱敏视图对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class DesensitizationVo implements Serializable {
    private static final long serialVersionUID = -266254284105853546L;

    @ApiModelProperty(value = "密码")
    @Desensitization
    private String password;

    @ApiModelProperty(value = "电话")
    @Desensitization(func = DesensitizationFunction.NO_MASK)
    private String phone;
}
